import request from './http'

//收藏
export const create = params => {
    return request({
        url:'/collect/create',
        method:'post',
        data:params
    })
}

//取消收藏
export const deleteCollect = params => {
    return request({
        url:'/collect/delete',
        method:'post',
        data:params
    })
}


//获取用户收藏列表
export const getCollectList = params => {
    return request({
        url:'/collect/list',
        method:'get',
        params:params
    })
}
